Repository navigation
Processing core functions for Python. - #273
Open
tychedelia wants to merge 1 commit into
Open
tychedelia wants to merge 1 commit into
tychedelia wants to merge 1 commit into
Conversation
tychedelia
force-pushed
the
py-core-functions
branch
from
November 16, 2026 20:50
af5e402 to
b7d9be8
Compare
|
Visual regression: 1 changed of 43 cases
If these changes are intentional, add the baseline |
tychedelia
force-pushed
the
py-core-functions
branch
from
November 17, 2026 20:30
b7d9be8 to
abd4cf2
Compare
tychedelia
marked this pull request as ready for review
November 17, 2026 21:54
catilac
approved these changes
Nov 18, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fills in a pile of the core Processing functions that were missing from Python.
noise,noise_detail,noise_seed. this is a port of Processing's actual Perlin noise (cos lookup table andall) so sketches look the same as the originals. lives in
processing_coreso the other frontends can use it too. i ant to do a more comprehensive re-evaluation of noise in the future, including adding more noise types that are useful for creative coding but this is just a compatability start.random,random_gaussian,random_seedbezier_point,bezier_tangent,curve_point,curve_tangentred,green,blue,alpha,hue,saturation,brightness. they respect the currentcolor_moderangeslerp_color, which interpolates in the current color mode space like Processing doescursor(kind)/no_cursor()withARROW,CROSS,HAND,MOVE,TEXT,WAITframe_rate()returns the measured fps (smoothed the same way Processing does it),frame_rate(fps)caps howfast
run()drawsmillis()exit_sketch(), which is Processing'sexit()but renamed so we don't shadow the Python builtinAlso fixes delta time to span the whole Processing frame, before it only covered the last
app.update()of theframe.